{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div class="ibox-content">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">名称：</label>
                                <div class="col-sm-9">
                                    <input name="name" type="text" class="form-control" value="{present name='name'}{$name.name}{/present}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">报名开始时间：</label>
                                <div class="col-sm-3">
                                <input type="datetime" id="enroll" autocomplete="off" name="enroll_time" class="form-control" value="{present name='name'}{$name.enroll_time}{/present}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">打分时间：</label>
                                <div class="col-sm-3">
                                <input type="datetime" id="start" autocomplete="off" name="start_time" class="form-control" value="{present name='name'}{$name.start_time}{/present}">
                                </div>
                                <div class="col-sm-3">
                                <input type="datetime" id="end" autocomplete="off" name="end_time" class="form-control" value="{present name='name'}{$name.end_time}{/present}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">内容：</label>
                                <div class="col-sm-9">
                                    <script type="text/plain" id="content" name="description" style="width:100%;height:240px;">{present name="name"}{:out_content($name.description)}{/present}</script>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
    layui.use(['laydate'], function(){
        var laydate = layui.laydate;

        var start = laydate.render({
            elem: '#enroll',
            type: 'datetime',})
       //开始时间时间
        var start = laydate.render({
            elem: '#start',
            type: 'datetime',
            min: '1900-1-1 00:00:00',
            max: '2099-6-16 23:59:59',
            trigger: 'click', //采用click弹出
            done: function (value, date, endDate) {
                end.config.min = {
                    year: date.year,
                    month: date.month - 1,
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }; //开始日选好后，重置结束日的最小日期
                end.config.value = {
                    year: date.year,
                    month: date.month - 1,
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }; //将结束日的初始值设定为开始日
            }
        });

        //结束时间
        var end = laydate.render({
            elem: '#end',
            type: 'datetime',
            min: '1900-1-1 00:00:00',
            max: '2099-6-16 23:59:59',
            trigger: 'click', //采用click弹出
            done: function (value, date, endDate) {
                start.config.max = {
                    year: date.year,
                    month: date.month - 1,
                    date: date.date,
                    hours: date.hours,
                    minutes: date.minutes,
                    seconds: date.seconds
                }; //结束日选好后，重置开始日的最大日期
            }
        });
    })
</script>
{include file="public/bottom" /}

<!-- 加载编辑器的容器 -->
{:ueditor('content')}
